The Kinetis SDK provides the FreeRTOS Abstraction Layer for synchronization, mutual exclusion, message queue, etc.
More...
|
| #define | FSL_RTOS_TASK_DEFINE(task, stackSize, name, usesFloat) |
| | Creates a task descriptor that is used to create the task with task_create. More...
|
| |
| #define | task_create(task, priority, param, handler) |
| | Creates and sets the task to active. More...
|
| |
|
| #define | MSG_QUEUE_DECLARE(name, number, size) xQueueHandle name |
| | This macro statically reserves the memory required for the queue. More...
|
| |
| #define kSyncWaitForever 0xFFFFFFFFU |
To be used instead of a standard declaration.
- Parameters
-
| obj | The sync object to create. |
To be used instead of a standard declaration.
- Parameters
-
| obj | The lock object to create. |
| #define FSL_RTOS_TASK_DEFINE |
( |
|
task, |
|
|
|
stackSize, |
|
|
|
name, |
|
|
|
usesFloat |
|
) |
| |
Value:static signed portCHAR fslTaskName_##task[]=name; \
static int fslTaskStackSize_##task = stackSize
- Parameters
-
| task | The task function. |
| stackSize | Number of elements in the stack for this task. |
| name | String to assign to the task. |
| usesFloat | Boolean that indicates whether the task uses the floating point unit. |
| #define task_create |
( |
|
task, |
|
|
|
priority, |
|
|
|
param, |
|
|
|
handler |
|
) |
| |
Value:
(uint8_t *)fslTaskName_##task, \
fslTaskStackSize_##task, \
NULL, \
priority, \
param, \
false, \
handler)
fsl_rtos_status __task_create(task_t task, uint8_t *name, uint16_t stackSize, task_stack_t *stackMem, uint16_t priority, void *param, bool usesFloat, task_handler_t *handler)
Create a task.
- Parameters
-
| task | The task function. |
| priority | Initial priority of the task. |
| param | Pointer to be passed to the task when it is created. |
| handler | Returns the identifier to be used afterwards to destroy the task. |
- Return values
-
| kSuccess | The task was successfully created. |
| kError | Creation of task failed. |
| #define MSG_QUEUE_DECLARE |
( |
|
name, |
|
|
|
number, |
|
|
|
size |
|
) |
| xQueueHandle name |
- Parameters
-
| name | Identifier for the memory region. |
| number | Number of elements in the queue. |
| size | Size of every elements in words. |